package com.ilvyou.data.lcs;

import java.io.Serializable;

/**
 * Created by Administrator on 2017/2/13.
 */
public class CollectPsync2EntityPK implements Serializable {
    private Integer ymdayid;
    private Long periodid;

    public Integer getYmdayid() {
        return ymdayid;
    }

    public void setYmdayid(Integer ymdayid) {
        this.ymdayid = ymdayid;
    }

    public Long getPeriodid() {
        return periodid;
    }

    public void setPeriodid(Long periodid) {
        this.periodid = periodid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CollectPsync2EntityPK that = (CollectPsync2EntityPK) o;

        if (ymdayid != null ? !ymdayid.equals(that.ymdayid) : that.ymdayid != null) return false;
        if (periodid != null ? !periodid.equals(that.periodid) : that.periodid != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = ymdayid != null ? ymdayid.hashCode() : 0;
        result = 31 * result + (periodid != null ? periodid.hashCode() : 0);
        return result;
    }
}
